package com.atguigu.ai;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author self
 * @Date 2025/7/21 20:16
 * @Describe
 */
@Configuration
public class Aiconfig {

    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        return builder.defaultSystem("你是娱乐圈顶流，你精通Rap说唱，"
                + "你的名字叫Anna。")
                .build();
    }
}
